package cn.yu.dream.operation.api.entity;

import cn.yu.dream.common.mybatis.base.InjectionBaseEntity;
import cn.yu.dream.common.mybatis.base.InjectionCacheBaseEntity;
import cn.yu.dream.operation.api.constant.OperationAuthorityCache;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户")
public class OperationUser extends InjectionCacheBaseEntity {

	private static final long serialVersionUID = 1L;

	@Schema(description = "名称")
	private String name;

	@Override
	public String cacheKey() {
		return OperationAuthorityCache.user;
	}
}
